using UnityEngine;
using UnityEngine.UI;

public class TestAllUIEvents : MonoBehaviour
{
	public Text textBox;

	public void NewEvent(string eventDescription)
	{
		textBox.text = "(" + Time.frameCount + ")" + Time.realtimeSinceStartup.ToString("f6") + ": " + eventDescription + "\n" + textBox.text;
		if (textBox.text.Length > 2000)
		{
			textBox.text = textBox.text.Substring(0, 2000);
		}
	}
}
